package Class::Scaffold::YAML::Active::Environment;

# $Id: Environment.pm 9206 2005-06-15 14:07:06Z rts $

use warnings;
use strict;
use Class::Scaffold::Environment;
use YAML::Active qw/assert_hashref hash_activate yaml_NULL/;


our $VERSION = '0.03';


use base 'Class::Scaffold::YAML::Active';


sub yaml_activate {
    my ($self, $phase) = @_;
    assert_hashref($self);
    my $hash = hash_activate($self, $phase);

    my $env = Class::Scaffold::Environment->getenv;
    while (my ($key, $value) = each %$hash) {
        $env->{$key} = $value;
    }
    yaml_NULL();
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - large-scale OOP application support

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

